/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.PruebaDisciplina;

/**
 * The persistence interface for the PruebaDisciplinas service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see PruebaDisciplinaPersistenceImpl
 * @see PruebaDisciplinaUtil
 * @generated
 */
public interface PruebaDisciplinaPersistence extends BasePersistence<PruebaDisciplina> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link PruebaDisciplinaUtil} to access the PruebaDisciplinas persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the PruebaDisciplinas in the entity cache if it is enabled.
	*
	* @param pruebaDisciplina the PruebaDisciplinas
	*/
	public void cacheResult(slcu.model.PruebaDisciplina pruebaDisciplina);

	/**
	* Caches the PruebaDisciplinases in the entity cache if it is enabled.
	*
	* @param pruebaDisciplinas the PruebaDisciplinases
	*/
	public void cacheResult(
		java.util.List<slcu.model.PruebaDisciplina> pruebaDisciplinas);

	/**
	* Creates a new PruebaDisciplinas with the primary key. Does not add the PruebaDisciplinas to the database.
	*
	* @param pruebaId the primary key for the new PruebaDisciplinas
	* @return the new PruebaDisciplinas
	*/
	public slcu.model.PruebaDisciplina create(long pruebaId);

	/**
	* Removes the PruebaDisciplinas with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param pruebaId the primary key of the PruebaDisciplinas
	* @return the PruebaDisciplinas that was removed
	* @throws slcu.NoSuchPruebaDisciplinaException if a PruebaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina remove(long pruebaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPruebaDisciplinaException;

	public slcu.model.PruebaDisciplina updateImpl(
		slcu.model.PruebaDisciplina pruebaDisciplina, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the PruebaDisciplinas with the primary key or throws a {@link slcu.NoSuchPruebaDisciplinaException} if it could not be found.
	*
	* @param pruebaId the primary key of the PruebaDisciplinas
	* @return the PruebaDisciplinas
	* @throws slcu.NoSuchPruebaDisciplinaException if a PruebaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina findByPrimaryKey(long pruebaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPruebaDisciplinaException;

	/**
	* Returns the PruebaDisciplinas with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param pruebaId the primary key of the PruebaDisciplinas
	* @return the PruebaDisciplinas, or <code>null</code> if a PruebaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina fetchByPrimaryKey(long pruebaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the PruebaDisciplinases where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the matching PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findByDisciplinaId(
		long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the PruebaDisciplinases where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of PruebaDisciplinases
	* @param end the upper bound of the range of PruebaDisciplinases (not inclusive)
	* @return the range of matching PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the PruebaDisciplinases where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of PruebaDisciplinases
	* @param end the upper bound of the range of PruebaDisciplinases (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first PruebaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching PruebaDisciplinas
	* @throws slcu.NoSuchPruebaDisciplinaException if a matching PruebaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina findByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPruebaDisciplinaException;

	/**
	* Returns the first PruebaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching PruebaDisciplinas, or <code>null</code> if a matching PruebaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina fetchByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last PruebaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching PruebaDisciplinas
	* @throws slcu.NoSuchPruebaDisciplinaException if a matching PruebaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina findByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPruebaDisciplinaException;

	/**
	* Returns the last PruebaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching PruebaDisciplinas, or <code>null</code> if a matching PruebaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina fetchByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the PruebaDisciplinases before and after the current PruebaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param pruebaId the primary key of the current PruebaDisciplinas
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next PruebaDisciplinas
	* @throws slcu.NoSuchPruebaDisciplinaException if a PruebaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.PruebaDisciplina[] findByDisciplinaId_PrevAndNext(
		long pruebaId, long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPruebaDisciplinaException;

	/**
	* Returns all the PruebaDisciplinases.
	*
	* @return the PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the PruebaDisciplinases.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of PruebaDisciplinases
	* @param end the upper bound of the range of PruebaDisciplinases (not inclusive)
	* @return the range of PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the PruebaDisciplinases.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of PruebaDisciplinases
	* @param end the upper bound of the range of PruebaDisciplinases (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.PruebaDisciplina> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the PruebaDisciplinases where disciplinaId = &#63; from the database.
	*
	* @param disciplinaId the disciplina ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the PruebaDisciplinases from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of PruebaDisciplinases where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the number of matching PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public int countByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of PruebaDisciplinases.
	*
	* @return the number of PruebaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}